<template>
  <div class="app-container home no-scrollbar">

    <div class="dashboard-card" v-if="checkPermi(['home:manage:waitDoing'])">
      <div class="card-title">
        我的待办
        <span>
          <router-link to="/bizMng/todotasks">更多</router-link>
        </span>
      </div>
      <div class="cart-content">
        <wait-doing></wait-doing>
      </div>
    </div>


    <div style="display: flex;justify-content: space-between;margin-top: 10px;width: 100%">

      <div class="dashboard-card" style="margin-right: 16px;padding: 16px 16px 0 16px" v-if="checkPermi(['home:manage:bizStatistics'])">
        <div class="card-title">交易监控</div>
        <div class="cart-content" style="margin-top: 0">
          <BizStatistics></BizStatistics>
        </div>
      </div>

      <div class="dashboard-card" style="padding: 16px 16px 0 16px" v-if="checkPermi(['home:manage:balance'])">
        <div class="card-title">余额监控</div>
        <div class="cart-content" style="margin-top: 0">
          <balance></balance>
        </div>
      </div>
    </div>

    <div class="home-row" style="display: flex; justify-content: space-between;margin-top: 10px;height: 350px;">
      <div class="dashboard-card" v-if="checkPermi(['home:manage:internalQueue'])">
        <div class="card-title">
          行内排队管理
          <span>
            <router-link to="/bizMng/internalQueue1/internalQueue2">更多</router-link>
          </span>
        </div>
        <div class="cart-content" style="margin-top: -15px;">
          <InternalQueue></InternalQueue>
        </div>
      </div>

      <div class="dashboard-card" style="margin: 0 16px" v-if="checkPermi(['home:manage:bizMonitor'])">
        <div class="card-title">
          业务监控
          <span>
            <router-link to="/bizMng/msg_manage/mail_send_dtl">更多</router-link>
          </span>
        </div>
        <div class="cart-content" style="margin-top: -15px;">
          <biz-monitor></biz-monitor>
        </div>
      </div>

      <div class="dashboard-card" v-if="checkPermi(['home:manage:exceptionHandler'])">
        <div class="card-title">
          异常通知
          <span>
            <router-link to="/bizMng/exceptionHandling/exceptionHandling">更多</router-link>
          </span>
        </div>
        <div class="cart-content" style="margin-top: -15px;">
          <exception-handler></exception-handler>
        </div>
      </div>
    </div>

  </div>
</template>

<script>
import WaitDoing from "./components/Dashboard/WaitDoing";
import ExceptionHandler from "./components/Dashboard/ExceptionHandler";
import BizMonitor from "./components/Dashboard/BizMonitor";
import Balance from "./components/Dashboard/Balance";
import InternalQueue from "./components/Dashboard/InternalQueue";
import BizStatistics from "./components/Dashboard/BizStatistics";
import {checkPermi} from '@/utils/permission.js';
export default {
  name: "index",
  components: {
    WaitDoing,
    ExceptionHandler,
    Balance,
    InternalQueue,
    BizMonitor,
    BizStatistics
  },
  data() {
    return {
      // 版本号
      version: "3.4.0",
      waitDoingDataList: [],
      checkPermi,
    };
  },
  methods: {},
  mounted() {},
};
</script>

<style scoped lang="scss">
.dash-title {
  font-weight: bold;
  font-size: 18px;
  margin-top: 20px;
  span {
    // border-bottom: 2px solid #676a6c;
  }
}
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }

  .dashboard-card {
    width: 100%;
    border-radius: 6px;
    background: #ffffff;
    padding: 15px;
    .card-title {
      text-align: left;
      color: #000000e6;
      font-family: PingFang SC;
      font-weight: 500;
      font-size: 16px;
      display: flex;
      justify-content: space-between;
      span {
        font-size: 14px;
        font-weight: 400;
      }
    }
    .cart-content {
      margin-top: 16px;
    }
  }
}
</style>
